scalebutton: Don't derive from GtkButton
authorMatthias Clasen <mclasen@redhat.com>
Fri, 10 Apr 2020 00:24:23 +0000 (20:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 10 Apr 2020 00:43:45 +0000 (20:43 -0400)
commit822c2aba36ca0fdb67dc6dee182219fc4f0e91dc
tree46a678f75c576e6e87829fc1353a9eba8041dc40
parenta11f9fea7669ba31e4416c13a07a117f6c6422f7
scalebutton: Don't derive from GtkButton

Make GtkScaleButton a widget that has a toggle button
as a child, just like all the other button widgets now.
The immediate benefit of this arrangement is to avoid
the "double focus" problem when we pop up the popup.

Update accessible, demos and tests to match.
demos/widget-factory/widget-factory.c
demos/widget-factory/widget-factory.ui
gtk/a11y/gtkscalebuttonaccessible.c
gtk/a11y/gtkscalebuttonaccessible.h
gtk/gtkscalebutton.c
gtk/ui/gtkscalebutton.ui
gtk/ui/gtkvolumebutton.ui
testsuite/gtk/focus-chain/widget-factory2.tab
testsuite/gtk/focus-chain/widget-factory2.tab-backward